package com.simple.handler.demo004;

import com.simple.handler.entity.Request;

public class DirectLeaderHandler extends AbstractHandler{

    @Override
    public void handler(Request request) {
        if(request.getDays() <= this.MIN){
            System.out.println("直接主管,已经处理;流程结束。");
            return;
        }

        if(null != this.next){
            this.next.handler(request);
        }else{
            System.out.println("审批拒绝！");
        }

    }
}